package com.ssy.lingxi.after.sale.repository;

import com.ssy.lingxi.after.sale.entity.ReplaceManualDeliveryGoodsDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 售后换货手工发货
 * @author 伍将
 * @date 2020/12/4
 * @version 2.0.0
 */
public interface ReplaceManualDeliveryGoodsRepository extends JpaRepository<ReplaceManualDeliveryGoodsDO, Long>, JpaSpecificationExecutor<ReplaceManualDeliveryGoodsDO> {

    /**
     * 根据换货id与发货类型查询发货信息
     * @author 伍将
     * @date 2020/12/4
     * @param replaceId:
     * @param DeliveryType:
     * @return:
     **/
    ReplaceManualDeliveryGoodsDO findByReplaceIdAndDeliveryType(Long replaceId, Integer DeliveryType);

    /**
     * 根据换货id查询发货信息
     * @author 伍将
     * @date 2020/12/4
     * @param replaceId:
     * @return:
     **/
    List<ReplaceManualDeliveryGoodsDO> findByReplaceId(Long replaceId);
}
